package com.adingxiong.quickstart.project.service.impl;

import com.adingxiong.quickstart.project.entity.GoodsContent;
import com.adingxiong.quickstart.project.mapper.GoodsContentMapper;
import com.adingxiong.quickstart.project.service.IGoodsContentService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xiongc
 * @since 2020-06-08
 */
@Service
public class GoodsContentServiceImpl extends ServiceImpl<GoodsContentMapper, GoodsContent> implements IGoodsContentService {

    @Override
    public List<GoodsContent> listByGoodsId(Integer id) {
        return baseMapper.selectList(
                new QueryWrapper<GoodsContent>().eq("goods_id",id)
        );
    }
}
